package com.ruoyi.consumer.evaluate.service.impl;

import java.util.List;

import com.ruoyi.consumer.evaluate.domain.ServiceEvaluate;
import com.ruoyi.consumer.evaluate.mapper.ServiceEvaluateMapper;
import com.ruoyi.consumer.evaluate.service.IServiceEvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 评价Service业务层处理
 * 
 * @author fkk
 * @date 2025-02-21
 */
@Service
public class ServiceEvaluateServiceImpl implements IServiceEvaluateService
{
    @Autowired
    private ServiceEvaluateMapper serviceEvaluateMapper;

    /**
     * 查询评价
     * 
     * @param id 评价主键
     * @return 评价
     */
    @Override
    public ServiceEvaluate selectServiceEvaluateById(Long id)
    {
        return serviceEvaluateMapper.selectServiceEvaluateById(id);
    }

    /**
     * 查询评价列表
     * 
     * @param serviceEvaluate 评价
     * @return 评价
     */
    @Override
    public List<ServiceEvaluate> selectServiceEvaluateList(ServiceEvaluate serviceEvaluate)
    {
        return serviceEvaluateMapper.selectServiceEvaluateList(serviceEvaluate);
    }

    /**
     * 新增评价
     * 
     * @param serviceEvaluate 评价
     * @return 结果
     */
    @Override
    public int insertServiceEvaluate(ServiceEvaluate serviceEvaluate)
    {
        return serviceEvaluateMapper.insertServiceEvaluate(serviceEvaluate);
    }

    /**
     * 修改评价
     * 
     * @param serviceEvaluate 评价
     * @return 结果
     */
    @Override
    public int updateServiceEvaluate(ServiceEvaluate serviceEvaluate)
    {
        return serviceEvaluateMapper.updateServiceEvaluate(serviceEvaluate);
    }

    /**
     * 批量删除评价
     * 
     * @param ids 需要删除的评价主键
     * @return 结果
     */
    @Override
    public int deleteServiceEvaluateByIds(Long[] ids)
    {
        return serviceEvaluateMapper.deleteServiceEvaluateByIds(ids);
    }

    /**
     * 删除评价信息
     * 
     * @param id 评价主键
     * @return 结果
     */
    @Override
    public int deleteServiceEvaluateById(Long id)
    {
        return serviceEvaluateMapper.deleteServiceEvaluateById(id);
    }
}
